﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.OleDb;
using GBG_DBM.Support.DAL.Entities;
namespace GBG_DBM.Support.DAL.DB
{
    public class IngredientDB
    {
        private DAO _DAO = new DAO();
        public DataTable getIngredients() 
        {
            OleDbCommand OleDB = new OleDbCommand("Select * from Ingredient");
            return _DAO.GetDataTable(OleDB);
        }
        public DataTable getIngredientsBySupplier(string code) 
        {
            OleDbCommand OleDB = new OleDbCommand("Select * from Ingredient where [Supplier Code]='" + code + "'");
            return _DAO.GetDataTable(OleDB);
        }
    }
}
